home *** CD-ROM | disk | FTP | other *** search
- function drawlandscape()
- {
- _root.grass1._x = grass1x * 10;
- _root.grass1._y = landarray[grass1x];
- _root.grass2._x = grass2x * 10;
- _root.grass2._y = landarray[grass2x];
- _root.grass3._x = grass3x * 10;
- _root.grass3._y = landarray[grass3x];
- _root.grass1.gotoAndStop(landt);
- _root.grass2.gotoAndStop(landt);
- _root.grass3.gotoAndStop(landt);
- _root.landscape.createEmptyMovieClip("earth",1);
- with(_root.landscape.earth)
- {
- beginFill(landcolour,100);
- lineStyle(3,strokecol,100);
- moveTo(-10,610);
- b = 0;
- steps = 400 / landdetail;
- d = landarray.length;
- i = 0;
- while(i < d)
- {
- c = landarray[i];
- lineTo(b,c);
- b += landdetail;
- i += 1;
- }
- lineTo(810,610);
- endFill();
- }
- _root.landscapemask.createEmptyMovieClip("earth",1);
- with(_root.landscapemask.earth)
- {
- beginFill(0,100);
- moveTo(-5,601);
- b = 0;
- steps = 400 / landdetail;
- d = landarray.length;
- i = 0;
- while(i < d)
- {
- c = landarray[i];
- lineTo(b,c);
- b += landdetail;
- i += 1;
- }
- lineTo(801,601);
- endFill();
- }
- }
-